{% extends 'generic.html' %}
{% load i18n %} {# Translating code #}

{% block cssBlock %}        
	<link href="/media/prettify/prettify.css" type="text/css" rel="stylesheet" />
	<link href="/media/css/{{request.session.theme}}/pageCreate/style.css" type="text/css" rel="stylesheet" />
	<link href="/media/css/{{request.session.theme}}/pageProfile/style.css" type="text/css" rel="stylesheet" />
{% endblock %}

{% block jsBlock %}
	<script type="text/javascript" src="/media/prettify/prettify.js"></script>
	<script type="text/javascript" src="/media/aloha/loaderAloha.js"></script><!---->
	<script type="text/javascript" src="/media/aloha/loaderInCreate.js"></script>
{% endblock %}

{% block header %}
	<h1>{% blocktrans %}Parallel Platform - Adding a new page{% endblocktrans %}</h1>
{% endblock %}
	
{% block title %}

{% endblock %}
            	
{% block article %}
	<h1>{% blocktrans %}Adding a new page{% endblocktrans %}</h1>
	<p class="explanation">{% blocktrans %}Select one of the templates available if you wish, or a 'default' one. Edit it filling all the information you wish and when you are finished, just save and exit. Remember to keep selected the template you wish to keep when saving as that will be the only one that we'll keep.{% endblocktrans %}</p>
	{% for temp in listTemplate %}
	<div class="itemTemplate">
		<div class="descriptionTemplate">
			<h2>{{temp.title}}</h2>
			<img src="{{temp.urlImage}}"/>
			<p>{{temp.description}}</p>
		</div>
		<div class="contentTemplate">
			<form action="." method="POST">
			{% csrf_token %}
			{{temp.form.type}}
			{{temp.form.title}}
			</br>
			{{temp.form.content}}
			</br>
			<input type="submit"/>
			</form>
			{{temp.form.errors}}
		</div>
	</div>
	{% endfor %}
{% endblock %}


